package com.itheima.health.mapper;

import com.github.pagehelper.Page;
import com.itheima.health.model.entity.CheckGroup;
import com.itheima.health.model.vos.CheckGroupVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 这个类是：
 *
 * @author: 25122
 * @date: 2024/6/2 21:42
 * @version: 1.0
 */
@Mapper
public interface CheckGroupMapper {

    Page<CheckGroupVo> findPage(@Param("queryString") String queryString);

    void insert(CheckGroup checkGroup);

    @Select("select * from health.t_checkgroup where id = #{id} ")
    CheckGroupVo selectById(Integer id);

    void updateCheckGroup(CheckGroup checkGroup);

    @Delete("delete from health.t_checkgroup where id = #{id} ")
    void deleteById(Integer id);
}
